/* clock.module.css */
.container {
  background: url("../img/background.jpg");
  min-height: 100vh;
}

/* 顶部导航 */
.top {
  top: 0;
  width: 96%;
  padding: 2%;
  display: flex;
  align-items: center;
  z-index: 2;
}

.top_img {
  width: 10%;
  cursor: pointer;
}

.top_img img {
  width: 25px;
  height: 25px;
}

.top_text {
  font-size: 18px;
  margin-left: 31%;
  font-weight: 600;
}

/* 主图 */
.main {
  position: relative;
  margin-top: -58px;
  height: 190px;
}

.main img {
  width: 70%;
  height: 100%;
  float: right;
}

.text {
  position: absolute;
  top: 64%;
  left: 3%;
  transform: translateY(-50%);
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.part {
  width: max-content;
  margin-left: 30%;
  margin-top: 3px;
}

/* 打卡区域 */
.clock {
  background: white;
  padding: 3%;
}

.clock_top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.left_day {
  font-weight: 600;
  color: #505a5a;
}

#day {
  color: red;
  margin: 0 5px;
}

.remind {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch_container {
  position: relative;
  width: 43px;
  height: 21px;
}

.switch_label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ccc;
  border-radius: 30px;
  transition: 0.3s;
  cursor: pointer;
}

.switch_label:after {
  content: "";
  position: absolute;
  top: 2px;
  left: 3px;
  width: 17px;
  height: 17px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .switch_label {
  background: #1890ff;
}

input:checked + .switch_label:after {
  left: 23px;
}

.week {
  display: flex;
  justify-content: space-around;
}

.already {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.score {
  width: 42px;
  height: 42px;
  background: #eee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9f9898;
}

/* 任务区域 */
.today {
  font-weight: 600;
  color: #505050;
  padding: 3%;
  margin-top: 1%;
}

.task {
  background: rgba(255, 255, 255, 0.5);
  margin: 3%;
  padding: 15px;
  border-radius: 10px;
}

.task_area {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task_left {
  flex: 2;
}

.task_top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

#task_score {
  color: #ff8d1a;
}

.task_bottom {
  color: #bababa;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.go_clock {
  background: #ffc300;
  color: white;
  border: none;
  padding: 8px 25px;
  border-radius: 20px;
  cursor: pointer;
}
